package com.jandan.util;

import java.io.File;
import java.util.UUID;

public class HealTheWordUtil {
	public final static int CSV = 0; //词库格式为CSV
	public final static int TXT = 1; //词库格式为TXT
	
	public static String[] generateConfiguration() {
		File f = new File(".");
		String filePath = "file:" + f.getAbsolutePath()
				+ "/WebContent/WEB-INF/";
//		String filePath  = "classpath:";
//		System.out.println(filePath);
		return new String[] { filePath + "applicationContext.xml",
				filePath + "dataAccessContext-local.xml" };
	}
	
	public static String generateWordLibID(){
		return "_" + UUID.randomUUID().toString().replace('-', '_');
	}
	
	public static String generateID() {
		// TODO Auto-generated method stub
		return UUID.randomUUID().toString().replace("-","_");
	}
}
